﻿using System;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.Presentation.Commands;
using Microsoft.Practices.Unity;
using Refract;
using Refract.Demo.Module2.Views;

namespace Refract.Demo.Module2
{
    /// <summary>
    /// Module controller for Roster
    /// </summary>
    public class Module2 : IModule
    {
        #region Properties

        /// <summary>
        /// Gets or sets the container.
        /// </summary>
        /// <value>The container.</value>
        [Dependency]
        public IUnityContainer Container { get; set; }

        /// <summary>
        /// Gets or sets the navigation.
        /// </summary>
        /// <value>The navigation.</value>
        [Dependency]
        public INavigator Navigator { get; set; } 

        #endregion

        #region IModule Members

       
        /// <summary>
        /// Initializes this module.
        /// </summary>
        public void Initialize()
        {

            Navigator.RegisterPage<HelloViewModel>("Hello");
            Navigator.RegisterPage<GoodByeViewModel>("GoodBye");
        }

        #endregion
    }
}
